package com.lanou.pianke.piece.web.pieceService;

import com.lanou.pianke.piece.web.entity.*;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface PieceService {

    public List<Piece> selectOneTagPieceByTagid(Integer tagId);

    public List<Piece> selectAllPiece(@RequestParam(defaultValue = "1") int pageNum,
                                      @RequestParam(defaultValue = "10") int pageSize);

    public Integer addPiece(Piece piece);

    public Integer selectOnePieceByPid(String pieceId,Long uid);



    public List<Pcomment> selectCommentByPieceId(String pieceId);

    public List<Preplay> selectPreplayByPcommentId(String pcomment_id);

    public Integer addPieceComment(String text,String pieceid,Long uid,String pieceText);


    public Integer insertPreplay(String commentText,String replayText,Long uid);

    public void selectPiece();

    public void deleteReplayByReplayText(String replayText);
    public void delPieceCommentBycommentText(String commentText);

    public void insertPieceLike(String pieceId,Long uid);


    public Piece selectOnePieceByPieceId(String pieceId);
    public List<Long> selectActiveUser() ;

    public void addRedis() ;

    void getRedis();

}
